package cn.jyj.springframework.beans.factory.config;

import cn.jyj.springframework.beans.factory.HierarchicalBeanFactory;

/**
 * Configuration interface to be implemented by most bean factories. Provides facilities to configure a bean factory,
 *   in addition to the bean factory client methods in the {@link cn.jyj.springframework.beans.factory.BeanFactory}
 *   interface.
 *
 * @Author 老顽固小可爱
 * @Date 2023/1/8 17:37
 * @Version 1.0
 */

public interface ConfigurableBeanFactory extends HierarchicalBeanFactory, SingletonBeanRegistry {

    String SCOPE_SINGLETON = "singleton";

    String SCOPE_PROTOTYPE = "prototype";

    void addBeanPostProcessor(BeanPostProcessor beanPostProcessor);

    /**
     * 销毁单例对象
     */
    void destroySingletons();
}
